package com.xyh;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

import java.util.Scanner;

@SpringBootApplication
@EnableEurekaClient
public class Application {
    public static void main(String[] args){
        Scanner scanner=new Scanner(System.in);
        String port=scanner.nextLine();

        new SpringApplicationBuilder(Application.class).properties("server.port="+port).run(args);
    }
}
